package com.xy.demo.model;

import java.math.BigDecimal;

public class User {

    private String username;

    private String password;

    private int age;

    private double money;

    public  char bName;

    public BigDecimal subtotal;



    public User() {
    }

    public User(String username, String password, int age, double money, char bName, BigDecimal subtotal) {
        this.username = username;
        this.password = password;
        this.age = age;
        this.money = money;
        this.bName = bName;
        this.subtotal = subtotal;
    }

    private User(String username){
        System.out.println("username:"+username);
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public char getbName() {
        return bName;
    }

    public void setbName(char bName) {
        this.bName = bName;
    }

    public BigDecimal getSubtotal() {
        return subtotal;
    }

    public void setSubtotal(BigDecimal subtotal) {
        this.subtotal = subtotal;
    }
}
